import request from "@/utils/request";

const agreementApi = {
  /**
   *
   * @param params 获取列表
   * @returns
   */
  getList(params: any) {
    return request({
      url: `/api/v1/agreement/selectPage`,
      method: "post",
      data: params,
    });
  },

  /**
   * 新增协议
   */
  addForm(data: object) {
    return request({
      url: "/api/v1/agreement/saveAgreement",
      method: "post",
      data,
    });
  },

  /**
   * 删除协议
   */
  delData(id: number) {
    return request({
      url: `/api/v1/agreement/delete?id=${id}`,
      method: "delete",
    });
  },
};

export default agreementApi;
